<template>
  <div>
    <svg-icon :icon-class="icon" @click="goto" />
  </div>
</template>
<script setup name="SvgLink">
  const props = defineProps({
    url: String,
    icon: String
  })

  function goto() {
    if (!props.url) return
    window.open(props.url)
  }
</script>
